.class public Les/rw;
.super Les/tw;
.source "AddedFolderChooser.java"


# instance fields
.field private e:Lcom/estrongs/android/view/n;


# direct methods
.method public constructor <init>(Lcom/estrongs/android/view/n;)V
    .locals 1

    .line 1
    invoke-direct {p0, p1}, Les/tw;-><init>(Lcom/estrongs/android/view/FileGridViewWrapper;)V

    .line 2
    iput-object p1, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    const/4 v0, 0x3

    .line 3
    invoke-virtual {p1, v0}, Lcom/estrongs/android/view/FileGridViewWrapper;->j(I)V

    const/4 v0, 0x0

    .line 4
    invoke-virtual {p1, v0}, Lcom/estrongs/android/view/n;->j(Z)V

    .line 5
    invoke-virtual {p1}, Lcom/estrongs/android/view/h0;->h()Landroid/app/Activity;

    move-result-object p1

    const v0, 0x7f11017a

    invoke-virtual {p1, v0}, Landroid/app/Activity;->setTitle(I)V

    return-void
.end method

.method private a()V
    .locals 5

    .line 7
    iget-object v0, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    invoke-virtual {v0}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->x()Ljava/util/List;

    move-result-object v0

    .line 8
    new-instance v1, Les/o30;

    invoke-direct {v1}, Les/o30;-><init>()V

    .line 9
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_0
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/estrongs/fs/g;

    const/4 v4, 0x4

    .line 10
    iput v4, v1, Les/o30;->a:I

    .line 11
    invoke-interface {v3}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v3

    iput-object v3, v1, Les/o30;->b:Ljava/lang/String;

    .line 12
    iget-object v3, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    invoke-virtual {v3}, Lcom/estrongs/android/view/h0;->i()Landroid/content/Context;

    move-result-object v3

    invoke-static {v3}, Les/l30;->a(Landroid/content/Context;)Les/l30;

    move-result-object v3

    invoke-virtual {v3, v1}, Les/l30;->a(Les/o30;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 13
    iget v3, p0, Les/tw;->b:I

    add-int/lit8 v3, v3, -0x1

    iput v3, p0, Les/tw;->b:I

    goto :goto_0

    .line 14
    :cond_1
    iget-object v1, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    invoke-virtual {v1}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->p()Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, v0}, Ljava/util/List;->removeAll(Ljava/util/Collection;)Z

    .line 15
    iget-object v0, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    invoke-virtual {v0}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->t()Landroidx/recyclerview/widget/RecyclerView;

    move-result-object v0

    invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView;->getAdapter()Landroidx/recyclerview/widget/RecyclerView$Adapter;

    move-result-object v0

    invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    .line 16
    iget-object v0, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/estrongs/android/view/n;->a(Z)V

    .line 17
    iget v0, p0, Les/tw;->b:I

    invoke-virtual {p0, v0}, Les/tw;->c(I)V

    return-void
.end method

.method static synthetic a(Les/rw;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Les/rw;->a()V

    return-void
.end method


# virtual methods
.method public a(Landroid/widget/TextView;)V
    .locals 1

    const v0, 0x7f11018c

    .line 18
    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V

    return-void
.end method

.method public a(Lcom/estrongs/android/ui/autobackup/activity/a;)V
    .locals 1
    .param p1    # Lcom/estrongs/android/ui/autobackup/activity/a;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 19
    invoke-super {p0, p1}, Les/tw;->a(Lcom/estrongs/android/ui/autobackup/activity/a;)V

    .line 20
    iget-object v0, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    invoke-virtual {v0}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->E()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 21
    iget-object v0, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    invoke-virtual {v0}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->x()Ljava/util/List;

    move-result-object v0

    iput-object v0, p1, Lcom/estrongs/android/ui/autobackup/activity/a;->e:Ljava/util/List;

    :cond_0
    return-void
.end method

.method public a(Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;)V"
        }
    .end annotation

    .line 2
    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result p1

    if-eqz p1, :cond_0

    .line 3
    iget-object p1, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Lcom/estrongs/android/view/n;->a(Z)V

    :cond_0
    return-void
.end method

.method public a(Landroidx/recyclerview/widget/RecyclerView;Landroid/view/View;I)Z
    .locals 0

    const/4 p1, 0x1

    return p1
.end method

.method public a(Landroidx/recyclerview/widget/RecyclerView;Landroid/view/View;IZZ)Z
    .locals 0

    .line 4
    iget-object p1, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    invoke-virtual {p1}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->E()Z

    move-result p1

    const/4 p2, 0x1

    if-nez p1, :cond_0

    .line 5
    iget-object p1, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    invoke-virtual {p1, p2}, Lcom/estrongs/android/view/n;->a(Z)V

    .line 6
    iget-object p1, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    invoke-virtual {p1, p3}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->i(I)V

    :cond_0
    return p2
.end method

.method public a(Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;I)Z
    .locals 0

    const/4 p1, 0x0

    return p1
.end method

.method public c(Ljava/util/List;)V
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;)V"
        }
    .end annotation

    .line 1
    invoke-static {}, Lcom/estrongs/android/ui/autobackup/activity/a;->b()Lcom/estrongs/android/ui/autobackup/activity/a;

    move-result-object v0

    if-eqz v0, :cond_2

    .line 2
    iget-object v0, v0, Lcom/estrongs/android/ui/autobackup/activity/a;->e:Ljava/util/List;

    .line 3
    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_2

    .line 4
    iget-object v1, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Lcom/estrongs/android/view/n;->a(Z)V

    const/4 v1, 0x0

    .line 5
    :goto_0
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v2

    if-ge v1, v2, :cond_1

    .line 6
    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/estrongs/fs/g;

    .line 7
    invoke-interface {v0, v2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 8
    iget-object v2, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    invoke-virtual {v2, v1}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->i(I)V

    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 9
    :cond_1
    invoke-interface {v0}, Ljava/util/List;->clear()V

    :cond_2
    return-void
.end method

.method public d()V
    .locals 3

    .line 1
    iget-object v0, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    invoke-virtual {v0}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->E()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    new-instance v0, Lcom/estrongs/android/ui/dialog/q;

    iget-object v1, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    invoke-virtual {v1}, Lcom/estrongs/android/view/h0;->i()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/estrongs/android/ui/dialog/q;-><init>(Landroid/content/Context;)V

    .line 3
    iget-object v1, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    invoke-virtual {v1}, Lcom/estrongs/android/view/h0;->i()Landroid/content/Context;

    move-result-object v1

    const v2, 0x7f110298

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    new-instance v2, Les/rw$a;

    invoke-direct {v2, p0}, Les/rw$a;-><init>(Les/rw;)V

    invoke-virtual {v0, v1, v2}, Lcom/estrongs/android/ui/dialog/q;->setConfirmButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/widget/Button;

    .line 4
    iget-object v1, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    invoke-virtual {v1}, Lcom/estrongs/android/view/h0;->i()Landroid/content/Context;

    move-result-object v1

    const v2, 0x7f110299

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/estrongs/android/ui/dialog/q;->setCancelButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/widget/Button;

    .line 5
    iget-object v1, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    invoke-virtual {v1}, Lcom/estrongs/android/view/h0;->i()Landroid/content/Context;

    move-result-object v1

    const v2, 0x7f110172

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/dialog/q;->setMessage(Ljava/lang/CharSequence;)V

    .line 6
    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q;->show()V

    goto :goto_0

    .line 7
    :cond_0
    iget-object v0, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Lcom/estrongs/android/view/n;->l(I)V

    :goto_0
    return-void
.end method

.method public f()V
    .locals 2

    .line 1
    iget-object v0, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    invoke-virtual {v0}, Lcom/estrongs/android/view/n;->e()Landroid/widget/TextView;

    move-result-object v0

    const/4 v1, 0x1

    .line 2
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setEnabled(Z)V

    .line 3
    iget-object v1, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    invoke-virtual {v1}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->E()Z

    move-result v1

    if-eqz v1, :cond_1

    const v1, 0x7f11003f

    .line 4
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    .line 5
    iget-object v1, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    invoke-virtual {v1}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->y()I

    move-result v1

    if-nez v1, :cond_0

    const/4 v1, 0x0

    .line 6
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setEnabled(Z)V

    :cond_0
    return-void

    .line 7
    :cond_1
    iget-object v1, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    invoke-virtual {v1}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->p()Ljava/util/List;

    move-result-object v1

    if-eqz v1, :cond_3

    iget-object v1, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    invoke-virtual {v1}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->p()Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->isEmpty()Z

    move-result v1

    if-eqz v1, :cond_2

    goto :goto_0

    :cond_2
    const v1, 0x7f11016f

    .line 8
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    goto :goto_1

    :cond_3
    :goto_0
    const v1, 0x7f11016e

    .line 9
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    :goto_1
    return-void
.end method

.method public g()V
    .locals 3

    .line 1
    iget-object v0, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    invoke-virtual {v0}, Lcom/estrongs/android/view/h0;->i()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Les/l30;->a(Landroid/content/Context;)Les/l30;

    move-result-object v0

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Les/l30;->a(I)Ljava/util/ArrayList;

    move-result-object v0

    .line 2
    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v1

    iput v1, p0, Les/tw;->b:I

    .line 3
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 4
    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Les/o30;

    .line 5
    iget-object v2, v2, Les/o30;->b:Ljava/lang/String;

    invoke-static {v2}, Lcom/estrongs/fs/impl/local/f;->f(Ljava/lang/String;)Lcom/estrongs/fs/impl/local/d;

    move-result-object v2

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 6
    :cond_0
    iget-object v0, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    invoke-virtual {v0}, Lcom/estrongs/android/view/FileGridViewWrapper;->I()V

    .line 7
    iget-object v0, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    invoke-virtual {v0}, Lcom/estrongs/android/view/FileGridViewWrapper;->b0()Les/q70;

    move-result-object v0

    invoke-static {v1, v0}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    .line 8
    iget-object v0, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    invoke-virtual {v0, v1}, Lcom/estrongs/android/view/n;->d(Ljava/util/List;)V

    return-void
.end method

.method public onBackPressed()Z
    .locals 2

    .line 1
    iget-object v0, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    invoke-virtual {v0}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->E()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Les/rw;->e:Lcom/estrongs/android/view/n;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/estrongs/android/view/n;->a(Z)V

    const/4 v0, 0x1

    return v0

    .line 3
    :cond_0
    invoke-super {p0}, Les/tw;->onBackPressed()Z

    move-result v0

    return v0
.end method
